/*
 * XML Type:  EDataType
 * Namespace: http://www.eclipse.org/emf/2002/Ecore
 * Java type: org.eclipse.emf.x2002.ecore.EDataType
 *
 * Automatically generated - do not modify.
 */
package org.eclipse.emf.x2002.ecore.impl;
/**
 * An XML EDataType(@http://www.eclipse.org/emf/2002/Ecore).
 *
 * This is a complex type.
 */
public class EDataTypeImpl extends org.eclipse.emf.x2002.ecore.impl.EClassifierImpl implements org.eclipse.emf.x2002.ecore.EDataType
{
    private static final long serialVersionUID = 1L;
    
    public EDataTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SERIALIZABLE$0 = 
        new javax.xml.namespace.QName("", "serializable");
    
    
    /**
     * Gets the "serializable" attribute
     */
    public boolean getSerializable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SERIALIZABLE$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SERIALIZABLE$0);
            }
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "serializable" attribute
     */
    public org.eclipse.emf.x2002.ecore.EBoolean xgetSerializable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.eclipse.emf.x2002.ecore.EBoolean target = null;
            target = (org.eclipse.emf.x2002.ecore.EBoolean)get_store().find_attribute_user(SERIALIZABLE$0);
            if (target == null)
            {
                target = (org.eclipse.emf.x2002.ecore.EBoolean)get_default_attribute_value(SERIALIZABLE$0);
            }
            return target;
        }
    }
    
    /**
     * True if has "serializable" attribute
     */
    public boolean isSetSerializable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(SERIALIZABLE$0) != null;
        }
    }
    
    /**
     * Sets the "serializable" attribute
     */
    public void setSerializable(boolean serializable)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SERIALIZABLE$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SERIALIZABLE$0);
            }
            target.setBooleanValue(serializable);
        }
    }
    
    /**
     * Sets (as xml) the "serializable" attribute
     */
    public void xsetSerializable(org.eclipse.emf.x2002.ecore.EBoolean serializable)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.eclipse.emf.x2002.ecore.EBoolean target = null;
            target = (org.eclipse.emf.x2002.ecore.EBoolean)get_store().find_attribute_user(SERIALIZABLE$0);
            if (target == null)
            {
                target = (org.eclipse.emf.x2002.ecore.EBoolean)get_store().add_attribute_user(SERIALIZABLE$0);
            }
            target.set(serializable);
        }
    }
    
    /**
     * Unsets the "serializable" attribute
     */
    public void unsetSerializable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(SERIALIZABLE$0);
        }
    }
}
